<!--{include file="oui/public/header.html"}-->
<!--{include file="oui/public/navibar.html"}-->
<!--{include file="oui/public/sidebar.html"}-->
<div class="header">
    <div class="stats">
        <p class="stat"><!--旁注--></p>
    </div>
    <h1 class="page-title">新闻管理</h1>
</div>
<!--优雅的分隔线-->
<ul class="breadcrumb">
    <li><a href="#">控制面板</a><span class="divider">/</span></li>
    <li class="active">新闻管理</li>
</ul>
<!--优雅的分隔线-->
<div class="container-fluid">
<div class="row-fluid">
    <div class="btn-toolbar"  style="margin-bottom:2px;">
        <a href="<!--{Route->MakeHyperLink Controller=':news::add'}-->" class="btn btn-primary">
            <i class="icon-plus"></i> 发布新闻
        </a>
        <a data-toggle="collapse" data-target="#search"  href="#" title= "检索" class="hidden">
            <button class="btn btn-primary" style="margin-left:5px"><i class="icon-search"></i></button>
        </a>
    </div>
    <!--优雅的分隔线-->
    <div class="block">
        <a href="#page-stats" class="block-heading" data-toggle="collapse">
            新闻列表
        </a>
        <div id="page-stats" class="block-body collapse in">
            <table class="table table-striped">
                <thead>
                    <tr>
                    <th width="15">选</th>
                    <th>标题</th>
                    <th width="115"> 发布日期</th>
                    <th width="75">操作选项</th>
                    </tr>
                </thead>
                <tbody>
                    <!--{foreach name="list1" from=$data item=row}-->
                    <tr>
                    <td><input type="checkbox" name="id" value="<!--{$row.id}-->" title="<!--{$smarty.foreach.list1.index+1}-->"/> </td>
                    <td><!--{$row.title|truncate_utf8:55:".."}--></td>
                    <td><!--{$row.datetime|date_format:"%Y-%m-%d"}--></td>
                    <td>
                        <a title="预览" href='<!--{Route->MakeHyperLink Application="xxxx" Controller="news::delete" Parameters="id:$list1_id|delete-type:single"}-->'>
                            <i class="icon-play"></i>
                        </a>&nbsp;
                        <!--{assign var='list1_id' value=$row.id}-->
                        <a title="修改" href='<!--{Route->MakeHyperLink Controller=":news::edit" Parameters="id:$list1_id"}-->'>
                            <i class="icon-pencil"></i>
                        </a>&nbsp;
                        <a title="删除" data-toggle="modal" href="#myModal" >
                            <i class="icon-remove" href='<!--{Route->MakeHyperLink Controller=":news::delete" Parameters="id:$list1_id|delete-type:single"}-->' data-toggle="modal" delete-confirm="true"></i>
                        </a>
                    </td>
                    </tr>
                    <!--{/foreach}-->
                </tbody>
            </table>
            <!--优雅的分隔线-->
            <div class="pagination">
                <ul>
                    <li><a href=""> 上一页 </a></li>
                    <li><span>1</span></li>
                    <li><a href=""> 下一页 </a></li>
                </ul>
            </div>
        </div>
    </div>
    <br/><br/>
<script type="text/javascript" src="<!--{$smarty.const.APP_PATH}-->/view/oui/scripts/list-delete-event.js"></script>
<!--{include file="oui/public/footer.html"}-->